Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin corsi blocks issue 141 #142

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Pavel6625
Copy link

In the updated version of register_click(), the trial only ends when the response length matches the sequence length, regardless of whether the clicks were correct or not. This allows the user to register an incorrect sequence without ending the trial immediately.

…bility to register the wrong sequence without ending the trial
Copy link

changeset-bot bot commented Oct 7, 2024

🦋 Changeset detected

Latest commit: a0d39da

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@jspsych-contrib/extension-countdown Patch
@jspsych-contrib/extension-device-motion Patch
@jspsych-contrib/extension-mediapipe-face-mesh Patch
@jspsych-contrib/extension-touchscreen-buttons Patch
@jspsych-contrib/plugin-corsi-blocks Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

A changeset for version bump for plugin-corsi-blocks
} else {
display_element
.querySelector(`.jspsych-corsi-block[data-id="${id}"]`)
.animate(incorrect_animation, animation_timing);
trial_data.correct = false;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Pavel6625 for working on this? I was about to work on this feature as well. This helps our use case as well. I am wondering if this needs to be an optional feature (turned on or off via a feature flag). The old behavior might still be useful under certain circumstances.

trial_data.correct = false;
}
// Only end the trial when the response length matches the sequence length
if (trial_data.response.length == trial.sequence.length) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: trial_data.response.length === trial.sequence.length

@jodeleeuw jodeleeuw changed the base branch from plugin-corsi-blocks to main October 29, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants